var express = require('express');
var router = express.Router();

/*
 * @Author: 岸舟
 * @Date: 2020-09-18 17:55:09
 * @LastEditors: MiNine
 * @LastEditTime: 2020-09-24 15:43:28
 * @Description: 定义了二级路径及方法名
 */
const {
  addOrder,
  delOrder,
  modOrderStatus,
  modOrder,
  getOrders,
  getOrder
} = require('../controllers/insureOrderCon');

const {
  permission159
} = require('../utils/permissionVerify');

router.post('/addOrder', addOrder);
router.post('/delOrder', permission159, delOrder);
router.post('/modOrderStatus', permission159, modOrderStatus);
router.post('/modOrder', permission159, modOrder);
router.get('/getOrders', getOrders);
router.get('/getOrder', getOrder);

module.exports = router;